< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03090300.xhp

(section: sprung)

Jumps
ジャンプ (移動)(hd_id3151262.1)

The following statements execute jumps.
各種のジャンプ処理を行うためのステートメントです。(par_id3148983.2)

(/section: sprung)

(embed text/sbasic/shared/03090301.xhp#gosubreturn : linkinfo)

GoSub...Return Statement [Runtime]
GoSub...Return ステートメント [実行時](hd_id3147242.1)

Calls a subroutine that is indicated by a label from a subroutine or a function. The statements following the label are executed until the next Return statement. Afterwards, the program continues with the statement that follows the GoSub statement.
サブルーチンや関数中から、ラベルで指定するサブルーチンを呼び出します。ラベルの指定先にあるステートメント群は、最初に出現する Return ステートメントの位置までが実行されます。これらのステートメント群の実行後、プログラムの処理行は、呼び出し元の GoSub ステートメントの次行にあたるステートメントに戻ります。(par_id3145316.2)

(/embed text/sbasic/shared/03090301.xhp#gosubreturn)

(embed text/sbasic/shared/03090302.xhp#goto : linkinfo)

GoTo Statement [Runtime]
GoTo ステートメント [実行時](hd_id3159413.1)

Continues program execution within a Sub or Function at the procedure line indicated by a label.
Sub や Function などのブロック中で、プログラムの実行行をラベル指定された位置に移動させます。(par_id3153379.2)

(/embed text/sbasic/shared/03090302.xhp#goto)

(embed text/sbasic/shared/03090303.xhp#ongosub : linkinfo)

On...GoSub Statement; On...GoTo Statement [Runtime]
On...GoSub ステートメント; On...GoTo ステートメント [実行時](hd_id3153897.1)

Branches to one of several specified lines in the program code, depending on the value of a numeric expression.
プログラムコード上に複数の指定行を設けておき、与えられる数値表式を基にして、いずれか 1 つの行に分岐します。(par_id3150359.2)

(/embed text/sbasic/shared/03090303.xhp#ongosub)


< Prev / Next >